package com.example.springfreemarker.pojo.dayincome;

import cn.hutool.core.util.StrUtil;
import lombok.*;

//套餐收入明细
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class ComboIncomeDetail extends IncomeDetail {
    private String newCard = "0";
    private String renewCard = "0";
    private String expireSoon = "0";
    private String expired = "0";
    private String chargeCardConsume="0";

    @Builder(builderMethodName = "detailBuilder")
    public ComboIncomeDetail(String order, String discount, String real, String notTake, String refund, String newCard, String renewCard, String expireSoon, String expired, String chargeCardConsume) {
        super(StrUtil.isEmpty(order)?"0":order, StrUtil.isEmpty(discount)?"0":discount, StrUtil.isEmpty(real)?"0":real, StrUtil.isEmpty(notTake)?"0":notTake, StrUtil.isEmpty(refund)?"0":refund);
        this.newCard = StrUtil.isEmpty(newCard)?"0":newCard;
        this.renewCard = StrUtil.isEmpty(renewCard)?"0":renewCard;
        this.expireSoon = StrUtil.isEmpty(expireSoon)?"0":expireSoon;
        this.expired = StrUtil.isEmpty(expired)?"0":expired;
        this.chargeCardConsume = StrUtil.isEmpty(chargeCardConsume)?"0":chargeCardConsume;
    }
}
